<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>

<head>
<base href="/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">


<title>网站操作</title>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
<meta name="description"
	content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

<link rel="shortcut icon" href="favicon.ico">
<link href="static/templet/css/bootstrap.min.css?v=3.3.5"
	rel="stylesheet">
<link href="static/templet/css/font-awesome.min93e3.css?v=4.4.0"
	rel="stylesheet">
<link href="static/templet/css/plugins/iCheck/custom.css"
	rel="stylesheet">
<link href="static/templet/css/animate.min.css" rel="stylesheet">
<link href="static/templet/css/style.min862f.css?v=4.1.0"
	rel="stylesheet">

</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">

		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<div class="form-horizontal">
						   <form method="post" id="keyWordForm" action="newStation/${msg }" class="form-horizontal" target="_self">
						    <input type="hidden" name="id" value="${info.id }">
						    <c:if test="${msg =='saveNewKeywordsDomainCustomer'}">
						    <div class="form-group">
								<label class="col-sm-4 control-label">用户名</label>

								<div class="col-sm-6">
									<input id="userName" name="userName" placeholder="请输入用户名"
									class="form-control" type="text" value="${info.userName }">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-4 control-label"></label>

								
								<div class="col-sm-6">
									<span style="color: red">客户名非必填，为下级用户添加域名时填写其用户名。</span>
									<br>
								</div>
							</div>
							
							
						    </c:if>
						      <c:if test="${msg =='updateNewKeywordsDomain'}">
						    	 <div class="form-group">
								<label class="col-sm-4 control-label">用户名</label>

								<div class="col-sm-6">
									<input id="userName" name="userName" placeholder="请输入用户名"
									class="form-control" type="text" value="${info.userName }" readonly="readonly">
								</div>
							</div>
						    </c:if>
						   
						    <c:if test="${msg =='saveNewKeywordsDomainCustomer'}">
						    <div class="form-group">
								<label class="col-sm-4 control-label"><span
								style="color: red">*</span>&nbsp;域名类型</label>

								<div class="col-sm-6">
									<select class="form-control" name="domain_type" id="domain_type" data-placeholder="域名类型">
							            <option value="http://" <c:if test="${info.domain_type == 'http://'}">selected</c:if>>http://</option>
							            <option value="https://" <c:if test="${info.domain_type == 'https://'}">selected</c:if>>https://</option>
							        </select>
								</div>
							</div>
							
							  <div class="form-group">
								<label class="col-sm-4 control-label"><span
								style="color: red">*</span>&nbsp;域名</label>

								<div class="col-sm-6">
									<input id="domain" name="domain" placeholder="请输入域名"
									class="form-control" type="text" value="${info.domain }">
								</div>
							</div>
							</c:if>
							
								    <c:if test="${msg =='updateNewKeywordsDomain'}">
						    <div class="form-group">
								<label class="col-sm-4 control-label"><span
								style="color: red">*</span>&nbsp;域名类型</label>

								<div class="col-sm-6">
							        <input id="domain_type" name="domain_type"
									class="form-control" type="text" value="${info.domainType }" readonly="readonly">
								</div>
							</div>
							
							  <div class="form-group">
								<label class="col-sm-4 control-label"><span
								style="color: red">*</span>&nbsp;域名</label>

								<div class="col-sm-6">
									<input id="domain" name="domain" placeholder="请输入域名"
									class="form-control" type="text" value="${info.domain }" readonly="readonly">
								</div>
							</div>
							</c:if>
							
						<%-- 	<div class="form-group">
								<label class="col-sm-4 control-label"><span
								style="color: red">*</span>&nbsp;厂商</label>
								<div class="col-sm-6">
								<select class="form-control" name="vender_id" id="vender_id" data-placeholder="厂商" style="vertical-align:top;">
								  <c:forEach items="${venderList}" var="vender">
					            	<option value="${vender.id }" <c:if test="${info.vender_id == vender.id}">selected</c:if>>${vender.venderName }</option>
					           	  </c:forEach>
								</select>
								</div>
							</div> --%>
							
							<div class="form-group">
								<label class="col-sm-4 control-label">备注</label>
								<div class="col-sm-6">
									<textarea id="remark" name="remark" class="form-control" style="height: 200px" >${info.remark }</textarea>
								</div>
							</div>
							
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<div class="col-sm-4 col-sm-offset-4">
									<button class="btn btn-primary" onclick="save()" type="button">保存</button>
									<button class="btn btn-white" onclick="cancel()" type="button">取消</button>
								</div>
							</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>


	<script src="static/templet/js/jquery.min.js?v=2.1.4"></script>
	<script src="static/templet/js/bootstrap.min.js?v=3.3.5"></script>
	<script src="static/templet/js/content.min.js?v=1.0.0"></script>
	<script src="static/templet/js/iframe.min.js"></script>
	<script src="static/templet/js/plugins/layer/layer.min.js"></script>
	<script src="static/templet/js/plugins/iCheck/icheck.min.js"></script>
	<script src="static/templet/js/plugins/layer/laydate/laydate.js"></script>
	<script type="text/javascript">
	
	$(function(){
		var message = '${param.message1}';
		if(message != null && message != "") {
			parent.layer.msg(message, {icon: 2});
		}
	})
	
	
		function cancel() {
			iframe.close(0);
		}

		function save() {
			
			var domain = $.trim($("#domain").val());
			if (domain == '') {
				layer.msg('请输入域名', {
					icon : 1
				});
				layer.close(load);
				return;
			}
			
			keyWordForm.submit();

		}
	</script>
</body>

</html>